const key = getFilePathStore(import.meta.url)

export const useCoreTabbarItemsComponentStore = defineStore(key, {
    state: () => ({
        active:0,
        items:[
            {text:'首页',icon:'home-o',name:'homeIndex'},
            {text:'我的',icon:'user-o',name:'homeSetting'},
        ],
        onChange:() => {},
    }),
    actions: {
        async initCustomFormatter(){
            this.active = 0;
            this.onChange();
            return this;
        }
    },
    persist: {
        key: key,
        storage: sessionStorage
    }
})